package com.flash.media.fegin;

import com.flash.media.domain.RecordLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
* @description: TODO
* @author admin
* @date 2023/1/2711:48
* @version 1.0
*/
@FeignClient(value = "flash-mongodb",fallback = MongoFeginImpl.class)
public interface MongoFegin {

    @GetMapping("stu/test")
    public String test();

    @PostMapping("stu/save")
    public void save(@RequestBody RecordLog recordLog);
}
